package com.jml.task.lock;


public interface RedisLock {
    /**
     * 获取锁
     *
     * @return
     */
    boolean tryLock();

    /**
     * 其他线程释放锁
     *
     * @return
     */
    boolean releaseLock(String lockId);

    /**
     *当前线程释放锁
     */
    boolean releaseLock();
}
